package com.caxxb.service;

import com.caxxb.entity.Game;
import com.caxxb.entity.Order;
import com.caxxb.entity.OrderPojo;
import com.caxxb.util.PageData;

import java.util.List;

public interface OrderService {

    boolean addToOrder(Game game, int userid,String conversion_code);

    public PageData<OrderPojo> getOrdersByUserId(int userid, int pageNo, int pageSize);

    PageData queryOrderByPage(int pageNo, int pageSize, String keywords);

    public List<Order> CheckOrderByUserId(int userid, int gameid);

    public OrderPojo getOrderByOrderId(int orderid);

    public boolean delOrderByOrderId(int orderid);
}